Page({
    data: {

    },
    async test() {
        let res = await wx.cloud.callFunction({
            name: "add",
            data: {
                num1: 11,
                num2: 22
            }
        });
        console.log(res.result);
    },
    async minus() {
        let res = await wx.cloud.callFunction({
            name: "minus",
            data: {
                num1: 11,
                num2: 22
            }
        });
        console.log(res.result);
    },
    async testajax() {
        let res = await wx.cloud.callFunction({
            name: "testajax"
        });
        console.log(res.result);
    }
})